﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp23_4_5
{
    class Person
    {
        bool IsSharpen = false;
        public void Sharpen()
        {
            Console.WriteLine("磨刀中...");
            IsSharpen = true;
        }
         public void GetWood()
        {
            Console.WriteLine("上山砍柴咯！");
            if(IsSharpen)
            {
                Console.WriteLine("砍了十斤柴。");
            }
            else
            {
                Console.WriteLine("砍了五斤柴。");
            }
        }
    }
    internal class Program
    {
        //public static void Main(string[] args)
        //{
        //    Person xiaohong = new Person();
        //    Person xiaominmg = new Person();
        //    xiaominmg.Sharpen();
        //    xiaominmg.GetWood();
        //    xiaohong.GetWood();
        //}
    }
}
